﻿#include <iostream>
#include <conio.h>
#include <math.h>

#include "Classless.h"
#if defined(_UNICODE) || defined(UNICODE)
#	pragma comment(lib,"CChartu.lib")
#else
#	pragma comment(lib,"CChart.lib")
#endif

using namespace Classless;

int main(int argc, char* argv[])
{
	CreateChart();
	HWND hWnd = CreatePopupChartWndGlobalWithMsgLoop(NULL, 0, _T("Console Project Example"));

	for (int i = -100; i <= 100; ++i)
	{
		double x, y;
		x = 0.1 * i;
		y = cos(x);
		AddPoint2D(x, y);
	}

	SetTitle(_T("Console Project Example"));

	ReDraw();

	(void)_getch();

	DestroyChart();
	return 0;
}